package pl.edu.pk.mech.kkbus.dto;

import java.util.Date;

import java.io.Serializable;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

public class NewUser implements Serializable {

    @NotNull
    @Size(min = 3, max = 20)
    private String name;
    @NotNull
    @Size(min = 3, max = 20)
    private String surname;
    @NotNull
    private Date birthday;
    @NotNull
    @Pattern(regexp=".+@.+\\.[a-z]+")
    private String email;
    @NotNull
    @Size(min = 9, max = 11)
    private String phone;
    @NotNull
    @Size(min = 3, max = 20)
    private String password;

    // TODO
    // confirm password
    
    public NewUser() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    
}